package pl.edu.pw.ee.buildcity.logs;

import org.apache.log4j.Logger;

/**
 * @author Mateusz
 * @since 2010-04-05
 */
public class DefaultLogsHandler {

	private static final Logger log = Logger.getLogger(DefaultLogsHandler.class);

	private StringBuffer logs = new StringBuffer();

	public void addLineWithNewLineSeparator(String line){
		logs.append(line).append("\n");
		log.info(line);
	}

	public String getLogs(){
		return logs.toString();
	}
}
